#include "memalloc.hpp"

MemAllocException::MemAllocException(ErrorCode error_code, const std::string& error_msg) {
	msg = error_msg;
	code = error_code;
}

MemAllocException::ErrorCode MemAllocException::GetErrorCode() const noexcept{
	return code;
}

const char *MemAllocException::what() const noexcept{
	return msg.c_str();
}

MemAllocException::~MemAllocException() noexcept{
}
